<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateOrderdetailTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateOrderdetailLabel_id}" for="id" />
                    <h:inputText id="id" value="#{orderdetailController.selected.id}" title="#{bundle.CreateOrderdetailTitle_id}" required="true" requiredMessage="#{bundle.CreateOrderdetailRequiredMessage_id}"/>
                    <h:outputLabel value="#{bundle.CreateOrderdetailLabel_foodPrice}" for="foodPrice" />
                    <h:inputText id="foodPrice" value="#{orderdetailController.selected.foodPrice}" title="#{bundle.CreateOrderdetailTitle_foodPrice}" required="true" requiredMessage="#{bundle.CreateOrderdetailRequiredMessage_foodPrice}"/>
                    <h:outputLabel value="#{bundle.CreateOrderdetailLabel_count}" for="count" />
                    <h:inputText id="count" value="#{orderdetailController.selected.count}" title="#{bundle.CreateOrderdetailTitle_count}" />
                    <h:outputLabel value="#{bundle.CreateOrderdetailLabel_userOrderId}" for="userOrderId" />
                    <h:selectOneMenu id="userOrderId" value="#{orderdetailController.selected.userOrderId}" title="#{bundle.CreateOrderdetailTitle_userOrderId}" required="true" requiredMessage="#{bundle.CreateOrderdetailRequiredMessage_userOrderId}">
                        <f:selectItems value="#{userorderController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateOrderdetailLabel_extraPriceId}" for="extraPriceId" />
                    <h:selectOneMenu id="extraPriceId" value="#{orderdetailController.selected.extraPriceId}" title="#{bundle.CreateOrderdetailTitle_extraPriceId}" required="true" requiredMessage="#{bundle.CreateOrderdetailRequiredMessage_extraPriceId}">
                        <f:selectItems value="#{extrapriceController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateOrderdetailLabel_foodId}" for="foodId" />
                    <h:selectOneMenu id="foodId" value="#{orderdetailController.selected.foodId}" title="#{bundle.CreateOrderdetailTitle_foodId}" required="true" requiredMessage="#{bundle.CreateOrderdetailRequiredMessage_foodId}">
                        <f:selectItems value="#{foodController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{orderdetailController.create}" value="#{bundle.CreateOrderdetailSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{orderdetailController.prepareList}" value="#{bundle.CreateOrderdetailShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateOrderdetailIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
